package com.itheima.service.impl;

import com.itheima.domain.User;
import com.itheima.mapper.UserMapper02;
import com.itheima.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper02 userMapper02;

    @Override
    public Integer save(User user) {

        return userMapper02.save(user);
    }

    @Override
    public Integer delete(Integer id) {
        return userMapper02.delete(id);
    }

    @Override
    public List<User> findAll() {
        return userMapper02.findAll();
    }

    @Override
    public Integer update(User user) {
        return userMapper02.update(user);
    }
}
